<?PHP
defined('_XR_EXEC') or die();
/**
 * 控制器处理类 
 */
class about_controller extends controller{
	function __construct(){
		parent::__construct();
	}
	
	
	# 联系我们
	public function contact__(){
		$controller = R::singleton()->gets['controller'];
		$action = R::singleton()->gets['action'];
		$db = factory::getDBO();
		$rs = $db->loadassoc('select a.* from `t_page` a  where a.deleted=0 and a.controller="'.$controller.'" and a.action="'.$action.'"  ');
		if(!$rs){
			url::jump('/home/index');
		}
		$this->assign('rs',$rs); 
	}

	
	public function us__(){
		$controller = R::singleton()->gets['controller'];
		$action = R::singleton()->gets['action'];
		$db = factory::getDBO();
		$rs = $db->loadassoc('select a.* from `t_page` a  where a.deleted=0 and a.controller="'.$controller.'" and a.action="'.$action.'"  ');
		if(!$rs){
			url::jump('/home/index');
		}
		$this->assign('rs',$rs); 
	}

	
	public function hr__(){
		$controller = R::singleton()->gets['controller'];
		$action = R::singleton()->gets['action'];
		$db = factory::getDBO();
		$rs = $db->loadassoc('select a.* from `t_page` a  where a.deleted=0 and a.controller="'.$controller.'" and a.action="'.$action.'"  ');
		if(!$rs){
			url::jump('/home/index');
		}
		$this->assign('rs',$rs); 
	}

	
	
	 
}
?>